var arr=[1,2,3,4,5,6];
var newArr=arr.filter(item=>{
    return item>3;
})
console.log(newArr)